package com.mall.service;
import com.mall.pojo.Active;
import com.mall.pojo.Admin;
import com.mall.pojo.Business;
import com.mall.pojo.Good;
import org.springframework.stereotype.Service;

import java.util.List;


public interface AdminService {

    Admin login(String acc,String pwd);

    List<Good> showGoodPlus(String name, Integer pageSize, Integer offset);

    Integer searchCountGood(String name);

    List<Good> showGoodClassify(Integer pid, Integer pageSize, Integer offset);

    Integer showGoodClassifyCount(Integer pid);

    Integer backToPre(Integer pid);

    List<Good> selectPreById(Integer currentPid);


    Boolean insertByPid(Integer pid, String goodName, String level);

    List<Business> showStorePlus(String name, String status, Integer pageSize, Integer offset);

    Integer showStorePlusCount(String name, String status);

    Boolean passToOne(Integer businessId);

    List<Good> searchAll();

    String selectLevelByGId(Integer gid);

    List<Active> showKillActive(String name, Integer pageSize, Integer offset);

    Integer showKillActiveCount(String name);

    Boolean addKill(Active active);
}
